﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd"> {{ user.nickname }} 收益统计 </div>
        <div class="weui-panel__bd">
            {% for batch, value in stat_data %}
            <a class="weui-media-box weui-media-box_appmsg weui-cell_access" href="{% url 'gma:user_ticket_input_detail' user.uid batch batch %}">
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">{{ batch }}</h4>
                </div>
                <div class="weui-cell__ft"> {{ value }} <i class="fa fa-ticket-alt"></i> </div>
            </a>
            {% endfor %}

            <div class="weui-media-box weui-media-box_text">
                <ul class="weui-media-box__info">
                    <li class="weui-media-box__info__meta"> 累计收益: {{ total_income }}  </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}

{% endblock extra_js %}